package com.icas;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import javax.annotation.PostConstruct;
import java.util.TimeZone;

/**
 * @author tocchen
 */
@SpringBootApplication
public class IcasApplication {

    public static void main(String[] args) {
        SpringApplication.run(IcasApplication.class, args);
    }

    /**
     * 解决Java虚拟机的时区问题
     */
    @PostConstruct
    void started() {
        //时区设置：中国上海
        //time.zone: "Asia/Shanghai"
        TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai"));
    }

}
